package com.ouc.openplatform.ouc.authManage.service;

import io.terminus.pampas.client.Export;

import java.util.List;

import com.ouc.openplatform.ouc.authManage.dto.NJ_PageAuthorityDTO;
import com.ouc.openplatform.ouc.authManage.dto.NJ_RoleAuthorityDTO;
import com.ouc.openplatform.ouc.authManage.model.NJ_RoleAuthority;
import com.ouc.openplatform.pojo.EUDataGridResult;

public interface NJ_ClientRoleAuthorityService {
	
	//1.增加角色权限信息-----sxl
	@Export(paramNames = {"nj_roleauthorityDTO"})
	public int saveRoleAuthority(NJ_RoleAuthorityDTO nj_roleauthorityDTO);
	
	//2.删除角色权限信息-----sxl
	@Export(paramNames = {"id"})
	public int deleteRoleAuthority(int id);
	
	//3.修改角色权限信息-----sxl
	@Export(paramNames = {"nj_roleauthorityDTO"})
	public int updateRoleAuthority(NJ_RoleAuthorityDTO nj_roleauthorityDTO);
	
	//4.查询所有角色权限信息----sxl
	@Export(paramNames = {"page","rows"})
	public EUDataGridResult getAllRoleAuthority(int page, int rows);
	
	@Export(paramNames = {"roleauthority"})
	public List<NJ_RoleAuthority>  getRoleAuthority(NJ_RoleAuthority roleauthority);

	//5.根据角色id获取所有的权限-----sxl
	@Export(paramNames = {"roleid"})
	public List<NJ_PageAuthorityDTO> getAllJoinRoleAuthorityByroleid(int roleid);
}
